package com.dtagri.fjwlw.bean;

/**
 * VRealTimeDataId entity. @author MyEclipse Persistence Tools
 */

public class VRealTimeData implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer companyId;
	@Override
	public String toString() {
		return "VRealTimeData [companyId=" + companyId + ", equipSnId="
				+ equipSnId + ", regionId=" + regionId + ", areaName="
				+ areaName + ", smallId=" + smallId + ", areaId=" + areaId
				+ ", equipName=" + equipName + ", sensorType=" + sensorType
				+ ", unit=" + unit + ", range=" + range + ", value=" + value
				+ ", alarmRank1=" + alarmRank1 + ", alarmRank2=" + alarmRank2
				+ ", alarmRank3=" + alarmRank3 + ", alarmRank4=" + alarmRank4
				+ ", avgs=" + avgs + ", reTime=" + reTime + "]";
	}

	private String equipSnId;
	private Integer regionId;
	private String   areaName;
	private String smallId;
	public VRealTimeData(String equipName, Integer sensorType, String unit,
			String range, Double value, String avgs) {
		super();
		this.equipName = equipName;
		this.sensorType = sensorType;
		this.unit = unit;
		this.range = range;
		this.value = value;
		this.avgs = avgs;
	}
  
	private Integer areaId;


	private String equipName;
	private Integer sensorType;
	private String unit;
	private String range;//范围值
	private Double value;
	private String alarmRank1;
	private String alarmRank2;
	private String alarmRank3;
	private String alarmRank4;
	private String avgs;
	public String getAlarmRank1() {
		return alarmRank1;
	}

	public void setAlarmRank1(String alarmRank1) {
		this.alarmRank1 = alarmRank1;
	}

	public String getAlarmRank2() {
		return alarmRank2;
	}

	public void setAlarmRank2(String alarmRank2) {
		this.alarmRank2 = alarmRank2;
	}

	public String getAlarmRank3() {
		return alarmRank3;
	}

	public void setAlarmRank3(String alarmRank3) {
		this.alarmRank3 = alarmRank3;
	}

	public String getAlarmRank4() {
		return alarmRank4;
	}

	public void setAlarmRank4(String alarmRank4) {
		this.alarmRank4 = alarmRank4;
	}

	private String reTime;
    
	// Constructors

	/** default constructor */
	public VRealTimeData() {
	}

	/** full constructor */
	public VRealTimeData(Integer companyId, String equipSnId,
			Integer regionId, Integer areaId, String equipName,
			Integer sensorType, String unit, String range, Double value,
			String reTime) {
		this.companyId = companyId;
		this.equipSnId = equipSnId;
		this.regionId = regionId;
		this.areaId = areaId;
		this.equipName = equipName;
		this.sensorType = sensorType;
		this.unit = unit;
		this.range = range;
		this.value = value;
		this.reTime = reTime;
	}

	// Property accessors

	public Integer getCompanyId() {
		return this.companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public String getEquipSnId() {
		return this.equipSnId;
	}

	public void setEquipSnId(String equipSnId) {
		this.equipSnId = equipSnId;
	}

	public Integer getRegionId() {
		return this.regionId;
	}

	public void setRegionId(Integer regionId) {
		this.regionId = regionId;
	}

	public Integer getAreaId() {
		return this.areaId;
	}

	public void setAreaId(Integer areaId) {
		this.areaId = areaId;
	}

	public String getEquipName() {
		return this.equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}

	public Integer getSensorType() {
		return this.sensorType;
	}

	public void setSensorType(Integer sensorType) {
		this.sensorType = sensorType;
	}

	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getRange() {
		return this.range;
	}

	public void setRange(String range) {
		this.range = range;
	}

	public Double getValue() {
		return this.value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public String getReTime() {
		return this.reTime;
	}

	public void setReTime(String reTime) {
		this.reTime = reTime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VRealTimeData))
			return false;
		VRealTimeData castOther = (VRealTimeData) other;

		return ((this.getCompanyId() == castOther.getCompanyId()) || (this
				.getCompanyId() != null && castOther.getCompanyId() != null && this
				.getCompanyId().equals(castOther.getCompanyId())))
				&& ((this.getEquipSnId() == castOther.getEquipSnId()) || (this
						.getEquipSnId() != null
						&& castOther.getEquipSnId() != null && this
						.getEquipSnId().equals(castOther.getEquipSnId())))
				&& ((this.getRegionId() == castOther.getRegionId()) || (this
						.getRegionId() != null
						&& castOther.getRegionId() != null && this
						.getRegionId().equals(castOther.getRegionId())))
				&& ((this.getAreaId() == castOther.getAreaId()) || (this
						.getAreaId() != null && castOther.getAreaId() != null && this
						.getAreaId().equals(castOther.getAreaId())))
				&& ((this.getEquipName() == castOther.getEquipName()) || (this
						.getEquipName() != null
						&& castOther.getEquipName() != null && this
						.getEquipName().equals(castOther.getEquipName())))
				&& ((this.getSensorType() == castOther.getSensorType()) || (this
						.getSensorType() != null
						&& castOther.getSensorType() != null && this
						.getSensorType().equals(castOther.getSensorType())))
				&& ((this.getUnit() == castOther.getUnit()) || (this.getUnit() != null
						&& castOther.getUnit() != null && this.getUnit()
						.equals(castOther.getUnit())))
				&& ((this.getRange() == castOther.getRange()) || (this
						.getRange() != null && castOther.getRange() != null && this
						.getRange().equals(castOther.getRange())))
				&& ((this.getValue() == castOther.getValue()) || (this
						.getValue() != null && castOther.getValue() != null && this
						.getValue().equals(castOther.getValue())))
				&& ((this.getReTime() == castOther.getReTime()) || (this
						.getReTime() != null && castOther.getReTime() != null && this
						.getReTime().equals(castOther.getReTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCompanyId() == null ? 0 : this.getCompanyId().hashCode());
		result = 37 * result
				+ (getEquipSnId() == null ? 0 : this.getEquipSnId().hashCode());
		result = 37 * result
				+ (getRegionId() == null ? 0 : this.getRegionId().hashCode());
		result = 37 * result
				+ (getAreaId() == null ? 0 : this.getAreaId().hashCode());
		result = 37 * result
				+ (getEquipName() == null ? 0 : this.getEquipName().hashCode());
		result = 37
				* result
				+ (getSensorType() == null ? 0 : this.getSensorType()
						.hashCode());
		result = 37 * result
				+ (getUnit() == null ? 0 : this.getUnit().hashCode());
		result = 37 * result
				+ (getRange() == null ? 0 : this.getRange().hashCode());
		result = 37 * result
				+ (getValue() == null ? 0 : this.getValue().hashCode());
		result = 37 * result
				+ (getReTime() == null ? 0 : this.getReTime().hashCode());
		return result;
	}

	public String getAvgs() {
		return avgs;
	}

	public void setAvgs(String avgs) {
		this.avgs = avgs;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getSmallId() {
		return smallId;
	}

	public void setSmallId(String smallId) {
		this.smallId = smallId;
	}

}